let mutations = {
  currentControl(state, payload) {
    state.currentindex = payload;
  },
  addToCart(state, payload) {
    // console.log(state);
    state.cartList.push(payload);
  },
  addCount(state, payload) {
    payload.count++;
    // console.log(payload.count);
  },
  subCount(state, payload) {
    payload.count--;
    // console.log(payload.count);
  },
}

export default mutations